<?php

use think\migration\Seeder;

class SystemConfigSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $datas = [
            ['name' => 'app_name',
                'value' => '拓冠科技',
            ], ['name' => 'site_name',
                'value' => '拓冠科技',
            ], ['name' => 'app_version',
                'value' => 'v1',
            ], ['name' => 'site_copy',
                'value' => '©版权所有 2014-2019 togy-demo',
            ], ['name' => 'site_icon',
                'value' => '/upload/decb0fe26fa3f486/b3f6521bf29403c8.png',
            ], ['name' => 'miitbeian',
                'value' => '粤ICP备16006642号-2',
            ], ['name' => 'storage_type',
                'value' => 'local',
            ], ['name' => 'storage_local_exts',
                'value' => 'doc,gif,icon,jpg,mp3,mp4,p12,pem,png,rar',
            ], ['name' => 'storage_qiniu_bucket',
                'value' => 'https',
            ], ['name' => 'storage_qiniu_domain',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_qiniu_access_key',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_qiniu_secret_key',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_oss_bucket',
                'value' => 'cuci-mytest',
            ], ['name' => 'storage_oss_endpoint',
                'value' => 'oss-cn-hangzhou.aliyuncs.com',
            ], ['name' => 'storage_oss_domain',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_oss_keyid',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_oss_secret',
                'value' => '用你自己的吧',
            ], ['name' => 'storage_oss_is_https',
                'value' => 'http',
            ], ['name' => 'storage_qiniu_region',
                'value' => '华东',
            ], ['name' => 'storage_qiniu_is_https',
                'value' => 'https',
            ], ['name' => 'wechat_mch_id',
                'value' => '1562782881',
            ], ['name' => 'wechat_mch_key',
                'value' => 'b12Dn9NreXpscXipKwBarGOuWW7ZKxUl',
            ], ['name' => 'wechat_mch_ssl_type',
                'value' => 'pem',
            ],['name' => 'wechat_mini_mch_ssl_type',
                'value' => 'pem',
            ], ['name' => 'wechat_mch_ssl_p12',
                'value' => '',
            ], ['name' => 'wechat_mch_ssl_key',
                'value' => '503b807cc54e0f62/f5453cc0862dfae6.pem',
            ], ['name' => 'wechat_mch_ssl_cer',
                'value' => 'f8188a15345635ef/54a9bb56d0c7cc7a.pem',
            ], ['name' => 'wechat_token',
                'value' => 'mytoken',
            ], ['name' => 'wechat_appid',
                'value' => 'wx1d1d70092e491820',
            ], ['name' => 'wechat_appsecret',
                'value' => '5f6159a1f55254327729146225a9510f',
            ],['name' => 'wechat_mini_appid',
                'value' => 'wx1d1d70092e491820',
            ], ['name' => 'wechat_mini_appsecret',
                'value' => '5f6159a1f55254327729146225a9510f',
            ], ['name' => 'wechat_encodingaeskey',
                'value' => '',
            ], ['name' => 'wechat_push_url',
                'value' => '消息推送地址：http://127.0.0.1:8000/wechat/api.push',
            ], ['name' => 'wechat_type',
                'value' => 'api',
            ], ['name' => 'store_title',
                'value' => '拓宽科技',
            ], ['name' => 'store_order_wait_time',
                'value' => '0.50',
            ], ['name' => 'store_order_clear_time',
                'value' => '24.00',
            ], ['name' => 'store_order_confirm_time',
                'value' => '60.00',
            ], ['name' => 'logo',
                'value' => 'https://wood.my8m.com/upload/a5ad2cf16366678f/bd6bbc488f5c28d9.jpg',
            ], ['name' => 'database_is_auto',
                'value' => '1',
            ], ['name' => 'database_day',
                'value' => '1',
            ], ['name' => 'database_number',
                'value' => '3',
            ],['name' => 'order_cancel_time',
                'value' => '12',
            ], ['name' => 'order_cancel_del_time',
                'value' => '24',
            ], ['name' => 'order_confirm_time',
                'value' => '5',
            ],['name' => 'order_refund_time',
                'value' => '31',
            ], ['name' => 'stock_warning',
                'value' => '10',
            ],
        ];
        $this->table('system_config')->insert($datas)->save();
    }
}